define([], function() {
    var tpl = {};

    tpl.queryAllScheme = function() {
        return queryAllScheme();
    }
    tpl.add = function() {
        return add();
    }

    /*方案分类 */
    var queryAllScheme = function() {
        return  '<script id="courseList_queryAllScheme" type="text/html">' +
                '   <option value="">全部</option>' +
                '   {{each list as value i}}' +
                '       <option value="{{value.id}}">{{value.class_name}}</option>' +
                '   {{/each}}' +
                '</script>';
    }
    var add = function() {
        return  '<script id="courseList_add" type="text/html">' +
                '	<div class="courseList-modal">' +
                '       <div class="form-horizontal clearfix">'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label"><i class="no-null">*</i>疗程名称</label>'+
                '              <div class="control-input">'+
                '                  <input type="text" class="form-control" id="tpl_courseName" placeholder="请输入疗程名称">'+
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label"><i class="no-null">*</i>方案分类</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="tpl_classId">' +
                '                       {{each schemeClass as value i}}' +
                '                           <option value="{{value.id}}">{{value.class_name}}</option>' +
                '                       {{/each}}' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label"><i class="no-null">*</i>分组情况</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="tpl_group">' +
                '                      <option value="00">不随机</option>' +
                '                      <option value="01">随机A组</option>' +
                '                      <option value="02">随机B组</option>' +
                '                      <option value="03">随机D组</option>' +
                '                      <option value="04">随机I组</option>' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label"><i class="no-null">*</i>疗程类型</label>'+
                '              <div class="control-input">'+
                '                  <select class="form-control" id="tpl_courseType">' +
                '                      <option value="00">正常疗程</option>' +
                '                      <option value="01">额外疗程</option>' +
                '                  </select>' +
                '              </div>'+
                '          </div>'+
                 '          <div class="form-group col-sm-12 col-md-12">'+
                '              <label class="control-label">备注</label>'+
                '              <div class="control-input">'+
                '                  <textarea id="tpl_courseIntro" class="form-control" placeholder="请输入疗程说明"></textarea>' +
                '              </div>'+
                '          </div>'+
                '       </div>'+
                '		<div class="editMedicBtn" id="add">添加</div>' +
                '	</div>' +
                '</script>';
    }
    return tpl;
});